package demo;

//判断字符串数字个数

public class Demo03 {
    public static void main(String [] args){
        String s = "abcd45612,asd";
          char [] arr=s.toCharArray();
          int count=0;
        for (int i = 0; i <arr.length ; i++) {
            if (Character.isDigit(arr[i])){
                count++;
            }

        }
        System.out.println(count);
    }



}
